package com.kuzan.autocloud.common.model.organization;

import com.kuzan.autocloud.common.model.Base;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>Description: 角色组</p>
 *
 * @author kuzank
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "sys_organization_rolegroup")
public class RoleGroup extends Base {

    @Column(length = 32)
    private String avatar;

    public static RoleGroup of(String title,String id) {
        RoleGroup o = new RoleGroup();
        o.setId(id);
        o.setTitle(title);
        return o;
    }
}
